<link rel="stylesheet" href="<?php echo base_url (); ?>css/portal.css" type="text/css" media="screen, projection" />
</head>
<body id="body">
<div id="header">
	<div id="header-content">
		<div id="logo">
			<a href="<?php echo base_url (); ?>" title="<?php echo $this->lang->line('global_sitename'); ?>"><img alt="<?php echo $this->lang->line('global_sitename'); ?>" src="<?php echo base_url ();?>images/portal/logo.png" /></a>
		</div>
		
		<?php if ((isset($main_content) && $main_content != 'login/index') && !isset($this->session->userdata['idmember'])) { ?>
		<div id="header-login">
			<form id="login_form" onsubmit="" method="post" action="<?php echo base_url ();?>login">
				<table>
					<tbody>
						<tr>
							<td><label for="email"><?php echo $this->lang->line('portal_user'); ?></label></td>
							<td><label for="pass"><?php echo $this->lang->line('portal_pass'); ?></label></td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td><input type="text" class="inputtext" value="" id="email" name="email"></td>
							<td><input type="password" class="inputtext" id="pass" name="pass"></td>
							<td><label for="btnEnter">
								<input type="submit" id="btnEnter" value="<?php echo $this->lang->line('global_enter'); ?>" class="submit"></label>
							</td>
						</tr>
						<tr>
							<td>
								<input type="checkbox" value="1" name="persistent" id="persistent" class="checkbox"><label for="persistent"><?php echo $this->lang->line('portal_persist'); ?></label>
							</td>
							<td colspan="2">
								<a rel="nofollow" href="<?php echo base_url();?>recover"><?php echo $this->lang->line('portal_recover'); ?></a>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
		<?php
			}
			elseif (isset($main_content) && $main_content != 'login/index')
			{ 
		?>
		<div id="header-login">
			<a href="<?php echo base_url(); ?>logout" title="<?php echo $this->lang->line('global_exit'); ?>"><?php echo $this->lang->line('global_exit'); ?></a>
		</div>
		<?php
			}
		?>
	</div>
</div>
<?php if (isset($header_base)) { ?>
<div id="header-base">
<div id="header-base-content">
<?php echo $header_base; ?>
</div>
</div>
<?php } ?>
<div id="content">